//
//  HerosViewCollectionViewCell.m
//  LOLBOX
//
//  Created by lanou3g on 15/12/18.
//  Copyright © 2015年 张明. All rights reserved.
//

#import "HerosViewCollectionViewCell.h"

#define Widths self.frame.size.width
#define Heights self.frame.size.height
@implementation HerosViewCollectionViewCell


-(instancetype)initWithFrame:(CGRect)frame{
    self = [super initWithFrame:frame];
    if (self) {
        [self p_setView];
    }
    return self;
}

-(void)p_setView{
    self.headImageView = [[UIImageView alloc] initWithFrame:CGRectMake(0, 0, Heights, Heights)];
    self.headImageView.backgroundColor = [UIColor whiteColor];
    [self addSubview:self.headImageView];
    
    self.nameLable = [[UILabel alloc] initWithFrame:CGRectMake(Heights+5 ,0 , Widths - Heights, Heights *0.4)];
    self.nameLable.font = [UIFont systemFontOfSize:14];
    // self.nameLable.backgroundColor = [UIColor redColor];
    
    [self addSubview:self.nameLable];
    
    self.secondLable = [[UILabel alloc] initWithFrame:CGRectMake(Heights+5 ,Heights*0.4 , Widths - Heights, Heights *0.3)];
    // self.secondLable.backgroundColor = [UIColor greenColor];
    self.secondLable.font = [UIFont systemFontOfSize:12];
    [self addSubview:self.secondLable];
    
    self.typeLable = [[UILabel alloc] initWithFrame:CGRectMake(Heights +5,Heights*0.7 , Widths - Heights, Heights *0.3)];
    // self.typeLable.backgroundColor = [UIColor orangeColor];
    self.typeLable.font = [UIFont systemFontOfSize:12];
    [self addSubview:self.typeLable];
}

- (void)awakeFromNib {
    // Initialization code
}

@end
